﻿@model Project5.Models.PaymentModel

@{
    ViewBag.Title = "Payment Account";
}

<ul class="nav nav-tabs">
  @if(Request.RawUrl.EndsWith("/Account/Edit")){
            <li class="active">@Html.ActionLink("Edit Account","Edit", "Account")</li>
        }else{
            <li>@Html.ActionLink("Edit Account","Edit", "Account")</li>
        }
  @if(Request.RawUrl.EndsWith("/Account/Payment")){
            <li class="active">@Html.ActionLink("Payment Account","Payment", "Account")</li>
        }else{
            <li>@Html.ActionLink("Payment Account","Payment", "Account")</li>
        }
</ul>

<p>
    Use the form below to update your payment account information. 
</p>

@using (Html.BeginForm()) {
    <div class="well">
        <fieldset>
            <legend>Payment Account</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.PayPalUsername)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.PayPalUsername)
                @Html.ValidationMessageFor(m => m.PayPalUsername)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PayPalPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.PayPalPassword)
                @Html.ValidationMessageFor(m => m.PayPalPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PayPalSignature)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.PayPalSignature)
                @Html.ValidationMessageFor(m => m.PayPalSignature)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PayPalEmail)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.PayPalEmail)
                @Html.ValidationMessageFor(m => m.PayPalEmail)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PayPalId)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.PayPalId)
                @Html.ValidationMessageFor(m => m.PayPalId)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(m => m.PaymentAmount)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.PaymentAmount)
                @Html.ValidationMessageFor(m => m.PaymentAmount)
            </div>

            <p>
                <input class="btn btn-primary" type="submit" value="Update Account" />
                @Html.ActionLink("Cancel", "Index", "Home", null, new { @class="btn btn-small" })
            </p>
        </fieldset>
    </div>
}
